import _ from "lodash";
import printMe from "./print.js";

function createDiv() {
	var ele = document.createElement("div");
	var btn = document.createElement("button");

	// Lodash（目前通过一个 script 脚本引入）对于执行这一行是必需的

	// 现在lodash通过importe引入了
	ele.innerHTML = _.join(["现在是管理输出！"], " ");

	btn.innerHTML = "Click";
	btn.onclick = printMe;

	ele.appendChild(btn);

	return ele;
}

document.body.appendChild(createDiv());